; Script optimized for extraction and desktop shortcut only
#define MyAppName "侠客先锋"
#define MyAppVersion "3.7"
#define MyAppExeName "侠客先锋.exe"

[Setup]
AppId={{F9C28651-3B35-460D-BABC-8600E1B71101}}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppPublisher="无"
DefaultDirName=C:\Program Files\侠客先锋
OutputDir=E:\work\weiduan\Output
OutputBaseFilename=侠客先锋
SetupIconFile=E:\work\weiduan\nwjs-sdk-v0.97.0-win-x64\favicon.ico
SolidCompression=yes
WizardStyle=modern
ArchitecturesAllowed=x64compatible
ArchitecturesInstallIn64BitMode=x64compatible
DisableProgramGroupPage=yes

[Languages]
Name: "chinesesimplified"; MessagesFile: "compiler:Languages\ChineseSimplified.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"

[Files]
Source: "E:\work\weiduan\nwjs-sdk-v0.97.0-win-x64\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\work\weiduan\nwjs-sdk-v0.97.0-win-x64\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs

[Icons]
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon

[Code]
// 安装程序代码段 - 已移除文件删除功能

[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent